﻿<%@ Page Language="C#" Theme="SkinFile" MasterPageFile="~/MarterUsuarios.master" AutoEventWireup="true" CodeFile="historial.aspx.cs" Inherits="historial" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:GridView ID="GridView1" runat="server" DataSourceID="historialBd" AllowPaging="True" AllowSorting="True" CellPadding="4" ForeColor="#333333" GridLines="None">
        <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
        <EditRowStyle BackColor="#999999" />
        <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
        <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
        <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
    </asp:GridView>
    <asp:SqlDataSource ID="historialBd" runat="server" ConnectionString="<%$ ConnectionStrings:casinoConnectionString %>"
        SelectCommand="SELECT [Apostado], [Ganado], [FechaJuego] FROM [Jugada] WHERE ([IdUsuario] = @IdUsuario) ORDER BY [FechaJuego] DESC">
        <SelectParameters>
            <asp:ControlParameter ControlID="TextBox1" Name="IdUsuario" PropertyName="Text" Type="Int32" />
        </SelectParameters>
    </asp:SqlDataSource>
    <br />
    Saldo actual:
    <asp:Label ID="LabelSaldo" runat="server" Text="Label"></asp:Label><br />
    Total apuestas:
    <asp:Label ID="LabelApuestas" runat="server" Text="Label"></asp:Label><br />
    Total ganancias:
    <asp:Label ID="LabelGanancias" runat="server" Text="Label"></asp:Label><br />
    &nbsp;<br />
    <asp:TextBox ID="TextBox1" runat="server" Visible="False"></asp:TextBox>
</asp:Content>

